package com.gitee.wsl.io.file

import com.gitee.wsl.io.File

/**
 * A filter for abstract pathnames.
 *
 *
 *  Instances of this interface may be passed to the
 * [listFiles(FileFilter)][File.listFiles] method
 * of the [java.io.File] class.
 *
 * @since 1.2
 */
fun interface FileFilter {
    /**
     * Tests whether or not the specified abstract pathname should be
     * included in a pathname list.
     *
     * @param  pathname  The abstract pathname to be tested
     * @return  `true` if and only if `pathname`
     * should be included
     */
    fun accept(pathname: File): Boolean
}